#include "widget.h"
#include "ui_widget.h"
static size_t status =1;

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);


}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_clicked()
{
    if(status==1){
        status=0;
        this->setStyleSheet("background-color:#F3F3F3;");
        ui->plainTextEdit->setStyleSheet("background-color:white;color:black;");
        ui->pushButton->setStyleSheet("color:black;");
    }
    else{
        status=1;
        this->setStyleSheet("background-color:black;");
        ui->plainTextEdit->setStyleSheet("background-color:black;color:white;");
        ui->pushButton->setStyleSheet("color:white;");
    }
}

